#include "stdio.h"
#include "math.h"
#include "time.h"
void main()
{
	int a[100]={0},i=0,j=0,b=0;
	srand((unsigned)time(NULL));
	for(i=0;i<100;i++)
	{
		a[i]=rand()%100;
		
		for(j=0;j<i;j++)
		{
			if(a[i]==a[j]) 
			{
				i--;
				break;
			}
		}
	
	}
	for(i=0;i<100;i++)
	{
		for(j=0;j<100-i;j++)
		{
		      if(a[j]>a[j+1])
			{
				b=a[j];a[j]=a[j+1];a[j+1]=b;
			}
		}	
	}		
	for(i=0;i<100;i++)
	{ 
		printf("%d\n",a[i]);
	}
}
			
